3
תגובות

עזרה בבעיה

פתח משתמש_112943 ,
היה מדריך באתר של שליחת מייל באמצעות PHP ואני לא מצליח לעשות את זה כותב לי את השגיאה - Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\wamp\www\mail.php on line 2

3 תשובות

avatar ענה intval ב 18 לפברואר 2012 #

אתה מנסה לשלוח מייל מלוקאלהוסט וזה בעיה לעשות את זה.
כשתעביר את האתר לשרת האחסון שלך - שם זה יעבוד.
אם אתה בכל זאת מאוד רוצה:
http://phpguide.co.il/%D7%A9%D7%9C%D7%99%D7%97%D7%AA_%D7%9E%D7%99%D7%99%D7%9C_%D7%9E_php_%D7%93%D7%A8%D7%9A_gmail_smtp.htm

avatar ענה משתמש_112943 ב 18 לפברואר 2012 #

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 mx.google.com ESMTP c16sm49715176eei.1 "
SMTP -> get_lines(): $data is "220 mx.google.com ESMTP c16sm49715176eei.1 "
SMTP -> FROM SERVER:220 mx.google.com ESMTP c16sm49715176eei.1
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mx.google.com at your service, [109.64.115.174] "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [109.64.115.174] "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [109.64.115.174] "
SMTP -> get_lines(): $str is "250-SIZE 35882577 "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 "
SMTP -> get_lines(): $str is "250-8BITMIME "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME "
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH "
SMTP -> get_lines(): $data was "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH "
SMTP -> get_lines(): $str is "250 ENHANCEDSTATUSCODES "
SMTP -> get_lines(): $data is "250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES "
SMTP -> FROM SERVER: 250-mx.google.com at your service, [109.64.115.174] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "535-5.7.1 Username and Password not accepted. Learn more at "
SMTP -> get_lines(): $data is "535-5.7.1 Username and Password not accepted. Learn more at "
SMTP -> get_lines(): $data was "535-5.7.1 Username and Password not accepted. Learn more at "
SMTP -> get_lines(): $str is "535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 c16sm49715176eei.1 "
SMTP -> get_lines(): $data is "535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 c16sm49715176eei.1 "
SMTP -> ERROR: Password not accepted from server: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 c16sm49715176eei.1
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.5 Flushed c16sm49715176eei.1 "
SMTP -> get_lines(): $data is "250 2.1.5 Flushed c16sm49715176eei.1 "
SMTP -> FROM SERVER:250 2.1.5 Flushed c16sm49715176eei.1
SMTP Error: Could not authenticate.
מה לעשות ?

avatar ענה intval ב 18 לפברואר 2012 #

SMTP -> ERROR: Password not accepted from server: 535-5.7.1 Username and Password not accepted. Learn more at 535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257

בכל אופן, תנסה להוריד את הגירסה היותר חדשה שלהם. אולי עדכנו משהו.